class HandlerInsertButton:

    @staticmethod
    def insert_elem_above(dct, key: str, value: None):
        value.index = key
        lst_item_dct = list(dct.items())
        extra_dct = {}

        next_indx = int(key)
        above_dct = dict(lst_item_dct[(next_indx - 1)::])

        for k, v in zip(range(next_indx, len(dct) + 1), above_dct.values()):
            extra_dct[str(k + 1)] = v
            v.index = str(k + 1)

        del dct[str(key)]
        dct.setdefault(key, value)
        dct.update(extra_dct)
        result_dct = dict(sorted(dct.items(), key=lambda item: int(item[0])))
        return result_dct